
<body>
    <div class="x-nav">
        <span class="layui-breadcrumb">
          <a><cite>首页</cite></a>
          <a><cite>会员管理</cite></a>
          <a><cite>第三方登录</cite></a>
        </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
        <form class="layui-form">
            <div class="layui-form-item">
                <label for="AppId" class="layui-form-label">
                    <span class="x-red">*</span>是否开启
                </label>
                <div class="layui-input-block">
                  <input type="checkbox" name="close" lay-skin="switch" title="开关">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="AppId" class="layui-form-label">
                    <span class="x-red">*</span>AppId
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="AppId" name="AppId" required="" lay-verify="required"
                    autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="Appkey" class="layui-form-label">
                    <span class="x-red">*</span>Appkey
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="Appkey" name="Appkey" required="" lay-verify="required"
                    autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="returnUrl" class="layui-form-label">
                    <span class="x-red">*</span>回调地址
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="returnUrl" name="returnUrl" required="" lay-verify="required"
                    autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="save" lay-submit="">
                    保存
                </button>
            </div>
        </form> 
    </div>
    <script>
        layui.use(['element','layer','form'], function(){
            $ = layui.jquery;//jquery
          lement = layui.element();//面包导航
          layer = layui.layer;//弹出层
          form = layui.form()
        

          
         //监听提交
          form.on('submit(save)', function(data){
            console.log(data);
            //发异步，把数据提交给php
            layer.alert("保存成功", {icon: 6});
            return false;
          });

          })
        </script>
        <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
</body>